package com.zbkj.crmeb.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 类型
 * @Description:
 * @author cyz
 * @date 2021-05-12
 */
public enum CommissionFreezeEnum implements IEnum<Integer> {
    /**
     *
     */
    FREEZE_可解冻(1, "可解冻"),
    NOFREEZE_不可解冻(2, "不可解冻");

    private Integer code;
    private String msg;

    public static CommissionFreezeEnum valueOf(Integer code) {
        for (CommissionFreezeEnum value : values()) {
            if (value.getCode() == code) {
                return value;
            }
        }

        return null;
    }

    CommissionFreezeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    @Override
    @JsonValue
    public Integer getValue() {
        return code;
    }

}
